package com.atguigu.admin.mapper;

import com.atguigu.admin.bean.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * @author Chen Yaqi
 * @version 1.0
 */
@Mapper
@Component
public interface StudentMapper extends BaseMapper<Student> {
    @Insert("insert into student(name,age,gender,phone) " +
            "values(#{name},#{age},#{gender},#{phone})")
    void saveStudent(String name,Integer age,String gender,String phone);
}
